home *** CD-ROM | disk | FTP | other *** search
open in:
MacOS 8.1
|
Win98
|
DOS
browse contents |
view JSON data
|
view as text
This file was processed as: Mailbox/MIME Entity
(archive/mbox).
Confidence | Program | Detection | Match Type | Support
|
---|
100%
| dexvert
| Newsgroup Content (archive/news)
| magic
| Supported |
100%
| dexvert
| Mailbox/MIME Entity (archive/mbox)
| magic
| Supported |
1%
| dexvert
| Text File (text/txt)
| fallback
| Supported |
100%
| file
| news text
| default
| |
99%
| file
| C source, ASCII text
| default
| |
100%
| checkBytes
| Printable ASCII
| default
| |
100%
| dexmagic
| PrintFox/Pagefox WEAK
| default
| |
100%
| perlTextCheck
| Likely Text (Perl)
| default
| |
100%
| siegfried
| fmt/950 MIME Email (1.0)
| default
| |
100%
| detectItEasy
| Format: plain text[LF]
| default (weak)
| |
100%
| xdgMime
| message/news
| default
|
|
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 50 61 74 68 3a 20 6e 65 | 77 73 2e 76 61 6e 64 65 |Path: ne|ws.vande|
|00000010| 72 62 69 6c 74 2e 65 64 | 75 21 6e 65 77 73 0a 46 |rbilt.ed|u!news.F|
|00000020| 72 6f 6d 3a 20 22 4d 61 | 72 63 75 73 20 48 2e 20 |rom: "Ma|rcus H. |
|00000030| 4d 65 6e 64 65 6e 68 61 | 6c 6c 22 20 3c 6d 65 6e |Mendenha|ll" <men|
|00000040| 64 65 6e 6d 40 63 74 72 | 76 61 78 2e 76 61 6e 64 |denm@ctr|vax.vand|
|00000050| 65 72 62 69 6c 74 2e 65 | 64 75 3e 0a 4e 65 77 73 |erbilt.e|du>.News|
|00000060| 67 72 6f 75 70 73 3a 20 | 63 6f 6d 70 2e 6c 61 6e |groups: |comp.lan|
|00000070| 67 2e 63 0a 53 75 62 6a | 65 63 74 3a 20 52 65 3a |g.c.Subj|ect: Re:|
|00000080| 20 50 72 6f 62 6c 65 6d | 20 77 69 74 68 20 63 20 | Problem| with c |
|00000090| 63 6f 64 65 2c 20 70 6c | 65 61 73 65 20 68 65 6c |code, pl|ease hel|
|000000a0| 70 21 0a 44 61 74 65 3a | 20 46 72 69 2c 20 31 39 |p!.Date:| Fri, 19|
|000000b0| 20 4a 61 6e 20 31 39 39 | 36 20 31 36 3a 33 31 3a | Jan 199|6 16:31:|
|000000c0| 35 32 20 2b 30 30 30 30 | 0a 4f 72 67 61 6e 69 7a |52 +0000|.Organiz|
|000000d0| 61 74 69 6f 6e 3a 20 56 | 61 6e 64 65 72 62 69 6c |ation: V|anderbil|
|000000e0| 74 20 55 6e 69 76 65 72 | 73 69 74 79 2c 20 4e 61 |t Univer|sity, Na|
|000000f0| 73 68 76 69 6c 6c 65 2c | 20 54 4e 2c 20 55 53 41 |shville,| TN, USA|
|00000100| 0a 4d 65 73 73 61 67 65 | 2d 49 44 3a 20 3c 33 30 |.Message|-ID: <30|
|00000110| 46 46 43 37 37 38 2e 33 | 31 33 46 40 63 74 72 76 |FFC778.3|13F@ctrv|
|00000120| 61 78 2e 76 61 6e 64 65 | 72 62 69 6c 74 2e 65 64 |ax.vande|rbilt.ed|
|00000130| 75 3e 0a 52 65 66 65 72 | 65 6e 63 65 73 3a 20 3c |u>.Refer|ences: <|
|00000140| 73 75 72 67 73 77 2d 31 | 39 30 31 39 36 30 31 34 |surgsw-1|90196014|
|00000150| 38 35 33 30 30 30 31 40 | 31 32 38 2e 32 30 36 2e |8530001@|128.206.|
|00000160| 32 30 36 2e 38 36 3e 0a | 4e 4e 54 50 2d 50 6f 73 |206.86>.|NNTP-Pos|
|00000170| 74 69 6e 67 2d 48 6f 73 | 74 3a 20 31 32 39 2e 35 |ting-Hos|t: 129.5|
|00000180| 39 2e 32 33 35 2e 31 0a | 4d 69 6d 65 2d 56 65 72 |9.235.1.|Mime-Ver|
|00000190| 73 69 6f 6e 3a 20 31 2e | 30 0a 43 6f 6e 74 65 6e |sion: 1.|0.Conten|
|000001a0| 74 2d 54 79 70 65 3a 20 | 74 65 78 74 2f 70 6c 61 |t-Type: |text/pla|
|000001b0| 69 6e 3b 20 63 68 61 72 | 73 65 74 3d 75 73 2d 61 |in; char|set=us-a|
|000001c0| 73 63 69 69 0a 43 6f 6e | 74 65 6e 74 2d 54 72 61 |scii.Con|tent-Tra|
|000001d0| 6e 73 66 65 72 2d 45 6e | 63 6f 64 69 6e 67 3a 20 |nsfer-En|coding: |
|000001e0| 37 62 69 74 0a 58 2d 4d | 61 69 6c 65 72 3a 20 4d |7bit.X-M|ailer: M|
|000001f0| 6f 7a 69 6c 6c 61 20 32 | 2e 30 62 35 20 28 4d 61 |ozilla 2|.0b5 (Ma|
|00000200| 63 69 6e 74 6f 73 68 3b | 20 49 3b 20 50 50 43 29 |cintosh;| I; PPC)|
|00000210| 0a 54 6f 3a 20 4a 6f 65 | 6c 20 57 65 69 6e 73 74 |.To: Joe|l Weinst|
|00000220| 65 69 6e 20 3c 73 75 72 | 67 73 77 40 6d 69 7a 7a |ein <sur|gsw@mizz|
|00000230| 6f 75 31 2e 6d 69 73 73 | 6f 75 72 69 2e 65 64 75 |ou1.miss|ouri.edu|
|00000240| 3e 0a 0a 4a 6f 65 6c 20 | 57 65 69 6e 73 74 65 69 |>..Joel |Weinstei|
|00000250| 6e 20 77 72 6f 74 65 3a | 0a 3c 63 6c 69 70 3e 0a |n wrote:|.<clip>.|
|00000260| 3e 20 20 20 20 63 68 61 | 72 20 20 77 6f 72 64 5b |> cha|r word[|
|00000270| 31 30 30 5d 2c 20 63 3b | 0a 3e 20 20 20 20 70 72 |100], c;|.> pr|
|00000280| 69 6e 74 66 28 22 45 6e | 74 65 72 20 61 20 77 6f |intf("En|ter a wo|
|00000290| 72 64 3a 20 20 20 22 29 | 3b 0a 3e 20 20 20 20 77 |rd: ")|;.> w|
|000002a0| 68 69 6c 65 28 20 28 63 | 20 3d 20 67 65 74 63 68 |hile( (c| = getch|
|000002b0| 61 72 28 29 29 20 21 3d | 20 27 5c 6e 27 29 20 20 |ar()) !=| '\n') |
|000002c0| 7b 0a 3e 20 20 20 20 20 | 20 20 2a 77 6f 72 64 20 |{.> | *word |
|000002d0| 3d 20 63 3b 0a 3e 20 20 | 20 20 20 20 20 77 6f 72 |= c;.> | wor|
|000002e0| 64 20 3d 3d 20 77 6f 72 | 64 20 2b 20 31 3b 0a 3e |d == wor|d + 1;.>|
|000002f0| 20 20 20 20 7d 0a 3e 20 | 20 20 20 70 72 69 6e 74 | }.> | print|
|00000300| 66 28 22 59 6f 75 20 65 | 6e 74 65 72 65 64 3a 20 |f("You e|ntered: |
|00000310| 20 22 29 3b 0a 3e 20 20 | 20 20 2a 77 6f 72 64 20 | ");.> | *word |
|00000320| 3d 20 30 3b 0a 3e 20 20 | 20 20 77 68 69 6c 65 28 |= 0;.> | while(|
|00000330| 20 2a 77 6f 72 64 20 21 | 3d 20 27 5c 6e 27 20 29 | *word !|= '\n' )|
|00000340| 0a 3e 20 20 20 20 7b 0a | 3e 20 20 20 20 20 20 20 |.> {.|> |
|00000350| 70 75 74 63 68 61 72 28 | 20 2a 77 6f 72 64 20 29 |putchar(| *word )|
|00000360| 3b 0a 3e 20 20 20 20 20 | 20 20 77 6f 72 64 20 3d |;.> | word =|
|00000370| 3d 20 77 6f 72 64 20 2b | 20 31 3b 0a 3e 20 20 20 |= word +| 1;.> |
|00000380| 20 7d 0a 3e 20 7d 0a 3c | 63 6c 69 70 3e 0a 3e 20 | }.> }.<|clip>.> |
|00000390| 49 20 6b 65 70 74 0a 3e | 20 67 65 74 74 69 6e 67 |I kept.>| getting|
|000003a0| 20 73 6f 6d 65 74 68 69 | 6e 67 20 73 69 6d 69 6c | somethi|ng simil|
|000003b0| 61 72 20 74 6f 3a 20 6e | 6f 74 20 61 6e 20 49 76 |ar to: n|ot an Iv|
|000003c0| 61 6c 75 65 2e 20 20 49 | 74 20 77 6f 75 6c 64 20 |alue. I|t would |
|000003d0| 62 65 20 6e 69 63 65 20 | 69 66 20 0a 0a 54 68 65 |be nice |if ..The|
|000003e0| 20 70 72 6f 62 6c 65 6d | 20 69 73 20 74 68 61 74 | problem| is that|
|000003f0| 20 79 6f 75 20 63 61 6e | 6e 6f 74 20 69 6e 63 72 | you can|not incr|
|00000400| 65 6d 65 6e 74 20 77 6f | 72 64 20 69 66 20 69 74 |ement wo|rd if it|
|00000410| 20 69 73 20 64 65 63 6c | 61 72 65 64 20 61 73 20 | is decl|ared as |
|00000420| 0a 61 6e 20 61 72 72 61 | 79 20 6f 66 20 63 68 61 |.an arra|y of cha|
|00000430| 72 61 63 74 65 72 73 2e | 20 20 49 6e 73 74 65 61 |racters.| Instea|
|00000440| 64 2c 20 61 64 64 20 0a | 63 68 61 72 20 2a 77 6f |d, add .|char *wo|
|00000450| 72 64 70 74 72 3b 0a 77 | 6f 72 64 70 74 72 3d 77 |rdptr;.w|ordptr=w|
|00000460| 6f 72 64 3b 0a 0a 61 6e | 64 20 74 68 65 6e 20 72 |ord;..an|d then r|
|00000470| 65 70 6c 61 63 65 20 77 | 6f 72 64 3d 77 6f 72 64 |eplace w|ord=word|
|00000480| 2b 31 20 28 77 68 69 63 | 68 20 77 61 73 20 65 73 |+1 (whic|h was es|
|00000490| 73 65 6e 74 69 61 6c 6c | 79 20 63 6f 72 72 65 63 |sentiall|y correc|
|000004a0| 74 29 0a 77 69 74 68 20 | 77 6f 72 64 70 74 72 3d |t).with |wordptr=|
|000004b0| 77 6f 72 64 70 74 72 2b | 31 20 6f 72 20 6a 75 73 |wordptr+|1 or jus|
|000004c0| 74 20 77 6f 72 64 70 74 | 72 2b 2b 20 6f 72 20 77 |t wordpt|r++ or w|
|000004d0| 6f 72 64 70 74 72 20 2b | 3d 20 31 0a 0a 27 4e 6f |ordptr +|= 1..'No|
|000004e0| 74 20 61 6e 20 4c 56 41 | 4c 55 45 27 20 6d 65 61 |t an LVA|LUE' mea|
|000004f0| 6e 73 20 74 68 61 74 20 | 79 6f 75 20 61 72 65 20 |ns that |you are |
|00000500| 61 73 73 69 67 6e 69 6e | 67 20 74 6f 20 61 6e 20 |assignin|g to an |
|00000510| 6f 62 6a 65 63 74 20 77 | 68 69 63 68 20 69 73 20 |object w|hich is |
|00000520| 0a 6e 6f 74 20 61 6c 6c | 6f 77 65 64 20 6f 6e 20 |.not all|owed on |
|00000530| 74 68 65 20 6c 65 66 74 | 20 73 69 64 65 20 6f 66 |the left| side of|
|00000540| 20 61 6e 20 65 71 75 61 | 74 69 6f 6e 3a 20 74 68 | an equa|tion: th|
|00000550| 65 20 70 6f 69 6e 74 65 | 72 20 27 77 6f 72 64 27 |e pointe|r 'word'|
|00000560| 20 0a 61 6c 77 61 79 73 | 20 70 6f 69 6e 74 73 20 | .always| points |
|00000570| 74 6f 20 74 68 65 20 62 | 65 67 69 6e 6e 69 6e 67 |to the b|eginning|
|00000580| 20 6f 66 20 61 20 61 75 | 74 6f 6d 61 74 69 63 61 | of a au|tomatica|
|00000590| 6c 6c 79 20 61 6c 6c 6f | 63 61 74 65 64 20 61 72 |lly allo|cated ar|
|000005a0| 72 61 79 20 0a 77 6f 72 | 64 5b 5d 0a 0a 54 68 65 |ray .wor|d[]..The|
|000005b0| 20 72 65 61 73 6f 6e 20 | 74 68 65 20 3d 3d 20 77 | reason |the == w|
|000005c0| 61 73 20 61 63 63 65 70 | 74 65 64 20 62 79 20 74 |as accep|ted by t|
|000005d0| 68 65 20 63 6f 6d 70 69 | 6c 65 72 20 69 73 20 74 |he compi|ler is t|
|000005e0| 68 61 74 20 69 74 20 64 | 6f 65 73 6e 27 74 20 64 |hat it d|oesn't d|
|000005f0| 6f 20 0a 61 6e 79 20 61 | 73 73 69 67 6e 6d 65 6e |o .any a|ssignmen|
|00000600| 74 3b 20 69 74 20 6a 75 | 73 74 20 63 6f 6d 70 61 |t; it ju|st compa|
|00000610| 72 65 73 20 74 68 65 20 | 74 77 6f 20 70 6f 69 6e |res the |two poin|
|00000620| 74 65 72 73 20 28 61 6e | 64 2c 20 69 6e 20 74 68 |ters (an|d, in th|
|00000630| 69 73 20 0a 63 61 73 65 | 2c 20 64 6f 65 73 20 6e |is .case|, does n|
|00000640| 6f 74 68 69 6e 67 20 77 | 69 74 68 20 74 68 65 20 |othing w|ith the |
|00000650| 72 65 73 75 6c 74 20 6f | 66 20 74 68 65 20 63 6f |result o|f the co|
|00000660| 6d 70 61 72 69 73 6f 6e | 29 2e 0a |mparison|).. |
+--------+-------------------------+-------------------------+--------+--------+